package com.booksystem.common;

import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *   自定义业务异常类
 * </p>
 * @author 段伟豪
 */
@Getter
@Setter
public class BusinessException extends RuntimeException {

    private String code;
    private String msg;

    public BusinessException(String code, String msg) {
        super(msg);
        this.code = code;
        this.msg = msg;
    }
}